//
//  AFNManager.m
//  AJBracelet
//
//  Created by 张欣 on 16/9/24.
//  Copyright © 2016年 zorro. All rights reserved.
//

#import "AFNManager.h"
#import "AFNetworking.h"

@interface AFNManager ()

@property (nonatomic, weak) AFHTTPSessionManager *manager;
@end

@implementation AFNManager
/**
 *  manager懒加载方法
 */
- (AFHTTPSessionManager *)manager{
    if (!_manager) {
        _manager = [AFHTTPSessionManager manager];
        _manager.requestSerializer = [AFJSONRequestSerializer serializer];
    }
    return _manager;
}

- (void)POST:(NSString *)URLString
                               parameters:(nullable id)parameters
                                  success:(nullable void (^)(NSURLSessionDataTask * _Nonnull task, id  _Nonnull responseObject))success
                                  failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error))failure {
    //发送网络请求

}

@end
